<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>消息</title>
		<link rel="stylesheet" href="../css/mui.min.css">
		<link rel="stylesheet" href="../css/aliyun.css">
		<link rel="stylesheet" href="css/style.css">
		<style>
			[v-cloak] {display: none;}
			#app{padding:30px 20px;}
			h4{color: #666;margin-bottom: 20px;}
			p{line-height: 28px;font-size:17px;}
		</style>
	</head>
	<body>
		<div id="app" v-cloak>
			<div id="mask"></div>
			<header id="header" class="mui-bar mui-bar-nav">
				<h1 class="mui-title">消息详情</h1>
			</header>
			<div id="app">
				<h4>{{data.topicDate}}</h4>
				<p>{{data.topicContent}}</p>
			</div>
		</div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script src="../js/jquery-3.1.0.js"></script>
	<script src="js/base.js"></script>
	<script src="../js/vue.min.js"></script>
	<script src="js/tools.js"></script>
	<script src="../js/vue-resource.js"></script>
	<script>
		window.onload = function() {
			//设置子页面高度
			var phone_height = screen.height;
			
			if (window.plus) {
				plusReady();
			} else {
				document.addEventListener('plusready', plusReady, false);
			}

			function plusReady() {
				var token = localStorage.getItem("token");
				var app = new Vue({
					el: "#app",
					data: {
						data:[],
					},
					methods: {
						get_message:function(){
							// var data={
							// 	topicId:this.data.topicId
							// }
							// TOOL.post("sysTopicController/mofidySysTopicState",data,function(res){
							// 	// console.log(JSON.stringify(res))
							// })
							this.$http.post(TOOL.Host + "sysTopicController/mofidySysTopicState", {
									data: JSON.stringify({
										topicId:this.data.topicId
									})
								}, {
									emulateJSON: true,
									headers: {
										'sourceType': "APP"
									}
								})
								.then(function(res) {
									console.log(JSON.stringify(res.data))
								}, function(res) {
									console.log(res)
								});
						}
					},
					created: function() {
						this.data=plus.webview.currentWebview();						
						this.get_message();
					}
				})
			}
		}
	</script>
</html>
